<div class="row-fluid">
	<div class="span12">
		<div class="box">
			<div class="box-head">
				<h3>Front-end Settings</h3>
			</div>
			<div class="box-content">
                        <?php if(count($_POST) > 0){?>
                        <div class="alert alert-info">
                            Data saved succsesfully
                        </div>
                        <?php } ?>
			<?php if($view->error){?>
			<div class="alert alert-error"><?php echo $view->error;?></div>
			<?php } ?>
				<form action="" class="validate form-horizontal" method="post" enctype="multipart/form-data">
					<fieldset>
<!--                                            <legend>General</legend>-->
                                            <div class="control-group">
                                                    <label for="select_template" class="control-label">Select template</label>
                                                    <div class="controls">
                                                        <div class="tip" data-placement="right" data-original-title='Select the template you want to use' style="width: 230px;padding:2px;">
                                                            <select name="data[select_template]" id="select_template" class='cho'>
                                                                <option<?php if($view->frontendsetup['select_template'] == "default"){?> selected="selected"<?php }?> value="default">Plain - Norwegian</option>
                                                                <option<?php if($view->frontendsetup['select_template'] == "defaultnoborder"){?> selected="selected"<?php }?> value="defaultnoborder">Plain - No logo border</option>
                                                                <option<?php if($view->frontendsetup['select_template'] == "defaultnologobg"){?> selected="selected"<?php }?> value="defaultnologobg">Plain - No logo background</option>
                                                                <option<?php if($view->frontendsetup['select_template'] == "defaultse"){?> selected="selected"<?php }?> value="defaultse">Plain - Swedish</option>
                                                                <option<?php if($view->frontendsetup['select_template'] == "template1"){?> selected="selected"<?php }?> value="template1">Template 1</option>
                                                                <option<?php if($view->frontendsetup['select_template'] == "garden"){?> selected="selected"<?php }?> value="garden">Garden - Norwegian</option>
                                                                <option<?php if($view->frontendsetup['select_template'] == "gardense"){?> selected="selected"<?php }?> value="gardense">Garden - Swedish</option>
                                                                <option<?php if($view->frontendsetup['select_template'] == "nuts"){?> selected="selected"<?php }?> value="nuts">Nuts - Norwegian</option>
                                                                <option<?php if($view->frontendsetup['select_template'] == "nutsse"){?> selected="selected"<?php }?> value="nutsse">Nuts - Swedish</option>
                                                            </select>
                                                        </div>
                                                    </div>
                                            </div>



                                            <div class="control-group">
                                                    <label for="facebook_tab_height" class="control-label">Facebook tab height</label>
                                                    <div class="controls">
                                                            <div class="input-prepend input-append">
                                                                    <input data-placement="right" data-original-title="The height of tab on facebook page" type="text" class='input-square tip' name="data[facebook_tab_height]" id="facebook_tab_height"  value="<?php echo $view->frontendsetup['facebook_tab_height'];?>" /><span class="add-on">px</span>
                                                            </div>
                                                    </div>
                                            </div>

                                            <div class="form-actions">
                                                    <button class="btn btn-primary" type="submit">Save</button>
                                            </div>
					</fieldset>
				</form>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
    function onchangelikegateoption(){
        var s = document.getElementById("is_use_default_like_gate");
        if(s.value == 1){
            $("#controllike_gate_img_url").css("display", "none");
            $("#idlike_gate_img_url_default").fadeIn();
        } else {
            $("#idlike_gate_img_url_default").css("display", "none");
            $("#controllike_gate_img_url").fadeIn();
        }
    }
    function onchangeturnofffrontend(s){
        if(s.value == 1){
            $("#controlturn_off_img_url").fadeOut();
        } else {

            $("#controlturn_off_img_url").fadeIn();
        }
    }
    function onmaincontentchange(s){
        if(s.value == "youtube"){
            $("#controlmain_content_to_show_youtube").fadeIn();
        } else {
            $("#controlmain_content_to_show_youtube").fadeOut();
        }
    }
</script>